# -*- coding:utf-8 -*-
"""
@文件 api.py
@Time : 2025/2/25
@Author: zjj
@Des: API路由文件
@Email: 1065377805@qq.com

"""
from fastapi import APIRouter

from api.admin import admin, role, access
from api.test.test import test, test_oath2

api_router = APIRouter(prefix="/api")
api_router.get("/test/test", tags=['测试路由'])(test)  # 测试路由
api_router.get("/test/test1", tags=['测试权限作用域'])(test_oath2)  # 测试路由

api_router.include_router(admin.router,prefix="/admin", tags=["admin"])
api_router.include_router(role.router, prefix="/admin", tags=["角色管理"])
api_router.include_router(access.router, prefix="/admin", tags=["权限菜单管理"])


